package cc.comac.mom.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import cc.comac.mom.bean.QualityQarCheckInvoice;
import cc.comac.mom.bean.QualityQarSplitBean;
import cc.comac.mom.util.ResultBean;

@FeignClient(name = "mom-qar-srv")
public interface QualityQarCheckInvoiceService {

	//发布
	@RequestMapping(value = "/p/cs/QualityQarCheckInvoiceService/qarIssue",method = RequestMethod.POST)
	public ResultBean qarIssue(@RequestBody QualityQarCheckInvoice obj);
	
	//开始检验
	@RequestMapping(value = "/p/cs/QualityQarCheckInvoiceService/beginCheck",method = RequestMethod.POST)
	public ResultBean beginCheck(@RequestBody QualityQarCheckInvoice obj);
	
	//驳回
	@RequestMapping(value = "/p/cs/QualityQarCheckInvoiceService/qarReject",method = RequestMethod.POST)
	public ResultBean qarReject(@RequestBody QualityQarCheckInvoice obj);
	
	//作废
	@RequestMapping(value = "/p/cs/QualityQarCheckInvoiceService/qarDisabled",method = RequestMethod.POST)
	public ResultBean qarDisabled(@RequestBody QualityQarCheckInvoice obj);
	
	//提交委托
	@RequestMapping(value = "/p/cs/QualityQarCheckInvoiceService/qarEntrust",method = RequestMethod.POST)
	public ResultBean qarEntrust(@RequestBody QualityQarCheckInvoice obj);
	
	//提交审核
	@RequestMapping(value = "/p/cs/QualityQarCheckInvoiceService/qarAudit",method = RequestMethod.POST)
	public ResultBean qarAudit(@RequestBody QualityQarCheckInvoice obj);
	
	//提交审核
	@RequestMapping(value = "/p/cs/QualityQarCheckInvoiceService/qarToFile",method = RequestMethod.POST)
	public ResultBean qarToFile(@RequestBody QualityQarCheckInvoice obj);
	
	//修改保存
	@RequestMapping(value = "/p/cs/QualityQarCheckInvoiceService/update",method = RequestMethod.POST)
	public ResultBean update (@RequestBody QualityQarCheckInvoice obj);
	
	//拆分
	@RequestMapping(value = "/p/cs/QualityQarCheckInvoiceService/qarSplit",method = RequestMethod.POST)
	public ResultBean qarSplit(@RequestBody QualityQarSplitBean obj);
	
	//通过QAR编号获取QAR信息
	@RequestMapping(value = "/p/cs/QualityQarCheckInvoiceService/getByQarNo",method = RequestMethod.POST)
	public ResultBean getByQarNo(@RequestParam(value = "qarNo") String qarNo);
	
	// 开立问题单
	@RequestMapping(value = "/p/cs/QualityQarCheckInvoiceService/insertQarProblemForm",method = RequestMethod.POST)
	public ResultBean insertQarProblemForm(@RequestBody QualityQarCheckInvoice qualityQarCheckInvoice);

}
